package com.zhu.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 功能描述
 * @author JoyBoyZH
 * @date 2022/6/3
 * @return
 */
@Getter
public enum UserPermissionEnum {
    //用户管理权限
    USER_MANAGE(0,"USER_MANAGE"),
    //商品管理权限
    GOODS_MANAGE(1,"GOODS_MANAGE"),
    //库存管理权限
    INVENTORY_MANAGE(2,"INVENTORY_MANAGE");

    @EnumValue
    private final Integer code;
    private final String name;

    UserPermissionEnum(final Integer code, final String name) {
        this.code = code;
        this.name = name;
    }
}
